<!--
 * @Author: GKN
 * @Date: 2023-10-24 11:53:29
 * @LastEditTime: 2023-11-20 15:15:50
 * @LastEditors: GKN
 * @Description: 
 * @FilePath: \mod\src\view\user\vote.vue
 * 可以输入预定的版权声明、个性签名、空行等
-->
<template>
    <div class="MarT35" v-loading="loading">
        <el-table :data="tableData" stripe style="width: 100%" @row-dblclick="rowDblclick">
            <el-table-column prop="title" label="文件名称" header-row-class-name="headn" >
                
            </el-table-column>
            <el-table-column prop="author" label="作者" header-row-class-name="headn" >
                
            </el-table-column>
            <el-table-column prop="ct" label="时间" header-row-class-name="headn" >
                
            </el-table-column>
            <el-table-column prop="address" label="投票次数" header-row-class-name="headn" >
                
            </el-table-column>
        </el-table>
    </div>
</template>

<script setup>
import { ref,reactive,getCurrentInstance } from "vue";
const { proxy } = getCurrentInstance();
import CryptoJS from 'crypto-js';
    const loading = ref(false)
    const tableData = ref([])
    const userOrder=()=>{
        loading.value = true
        proxy.$http.request(proxy.$api.user_vote_list+'?pageSize=20&prevTag=0&nextTag=0','get',{},false, function (res) {
            loading.value = false
            if(res&&res.data){
                tableData.value = res.data.data?res.data.data.list:[]
            }
        })
    }
    userOrder()
    
</script>

<style lang='less' scoped>
.subscribe{
    width: 20%;
    padding: 14px;
    .item{
        border-radius: 30px;
        border:1px solid #e9e9e9;
        color: #333;
        font-size: 16px;
        height: 55px;
        line-height: 55px;
        cursor: pointer;
        text-align: center;
    }
    .active{
        background: #d00b00;
        color: #fff;
    }
}
/deep/.el-table tr:first-child th{
    background: #e9e9e9;
    color: #333333;
}
</style>
  
  

